CONTIKI = ../..
# APPS=servreg-hack powertrace collect-view
# APPS = powertrace collect-view
APPS = powertrace
CONTIKI_PROJECT = udp-client udp-server
PROJECT_SOURCEFILES += collect-common.c

# ifdef WITH_COMPOWER
# APPS+= powertrace 
# CFLAGS+= -DCONTIKIMAC_CONF_COMPOWER=1 -DWITH_COMPOWER=1 -DQUEUEBUF_CONF_NUM=4
# endif

# ifdef SERVER_REPLY
# CFLAGS+=-DSERVER_REPLY=$(SERVER_REPLY)
# endif

ifdef PERIOD
CFLAGS+=-DPERIOD=$(PERIOD)
endif
all: $(CONTIKI_PROJECT)

CONTIKI_WITH_IPV6 = 1
include $(CONTIKI)/Makefile.include
